#ifndef DATABASE_H
#define DATABASE_H

#include <QObject>
#include "document.h"

class Database : public QObject
{
    Q_OBJECT
public:
    explicit Database(QObject *parent = 0);
    void getDoc(Document* doc = 0);
    QString getClientName(int);
    QString getDocumentType(int);
    QString getProductName(int);
    int docRowCount(int);

signals:

public slots:

private:
    QSqlQuery query;

};

#endif // DATABASE_H
